package com.zh.book_borrow.Exception;

import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
public class MyException extends Exception{

    private Integer code=500;
    private String msg;

    public MyException(String msg) {
        super(msg);
        this.msg=msg;
    }
    public MyException(){
        super();
        this.msg=super.getMessage();
    }
}
